jQuery(function(){
	$("#startDate").val(getFirstDateOfCurrMonth());
	$("#endDate").val(getCurrDate());
});

var query = function(){
	asyncSubmit("accountManagerForm");
};

var updateStatus = function(id,status){
	var param = {};
	param.paId=id;
	param.status=status;
	var fun = function(msg) {
		if (msg.result == "success") {
			layer.msg("操作成功！",1,9,function(){
				window.location.href=globePath+"/account/listAjax.htm";
			});
		} else {
			layer.alert(msg.result);
		};
	};
	
	ajaxCommFunWithDataType(globePath+"/account/updateStatus.htm", param,'json',fun);
};